import Vue from 'vue'
import Router from 'vue-router'
import Home from "@/components/Home";
import Login from "@/components/Login";
import Aside from "@/components/Aside";

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'login',
      component: Login
    },
    {
      path:"/home",
      name:'home',
      component:Home,
      children:[
        {
          path:"/aside",
          name:"aside",
          component:Aside
        }
      ]
    }
  ]
})
